.class Lcom/waiqin365/lightapp/product/az;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 10

    const/4 v4, 0x0

    new-instance v5, Ljava/util/ArrayList;

    invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V

    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    move v1, v0

    :goto_0
    move v2, v4

    move v3, v4

    :goto_1
    if-ge v2, v1, :cond_1

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v7, "image_id"

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string/jumbo v9, ""

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v0, v7, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v7, "path"

    iget-object v8, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v8}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v8

    invoke-interface {v8, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v8

    invoke-virtual {v0, v7, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string/jumbo v8, ""

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {v5, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v7

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    move v0, v2

    :goto_2
    add-int/lit8 v2, v2, 0x1

    move v3, v0

    goto :goto_1

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->g(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    move v1, v0

    goto :goto_0

    :cond_1
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->h(Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;)Landroid/content/Context;

    move-result-object v1

    const-class v2, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v2, "from"

    const-string/jumbo v7, "cm_cameratext"

    invoke-virtual {v1, v2, v7}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v2, "position"

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "photolist"

    invoke-virtual {v0, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v2, "idList"

    invoke-virtual {v0, v2, v6}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v2, "isedit"

    invoke-virtual {v0, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/az;->a:Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;

    const v1, 0x7f040027

    const v2, 0x7f040028

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/product/ProductDetailFullViewActivity;->overridePendingTransition(II)V

    return-void

    :cond_2
    move v0, v3

    goto :goto_2
.end method
